package com.tarena.lbs.coupon.service.impl;

import com.tarena.lbs.coupon.dao.repository.CouponRepository;
import com.tarena.lbs.coupon.pojo.param.CouponParam;
import com.tarena.lbs.coupon.service.CouponService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class CouponServiceImpl implements CouponService {
    @Autowired
    private CouponRepository couponRepository;

    @Override
    public void saveCoupon(CouponParam couponParam) {
        log.debug("新增优惠券：{}", couponParam);
        couponRepository.saveCoupon(couponParam);
    }
}
